<template>
  <div class="view">
    <div id="video-img">
      <img :src="item.url" alt="">
    </div>
    <div id="description">
      <div id="title">{{item.title}}</div>
      <div id="upName">{{item.upName}}</div>
      <div id="num">{{item.watch}}万播放·{{item.barrage}}弹幕</div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "Item",
    props:{
      item:{}
    }
  }
</script>

<style scoped>
#video-img{
  width: 70%;
  /*height: 20%;*/
}
  #video-img img{
    width: 100%;
    height: 100%;
  }
  .view{
    margin-top: 10px;
    display: flex;
  }
  #description{
    margin-left: 5px;
    position: relative;
    width: 100%;
  }
  #title{
    font: 12px "新宋体";
    overflow: hidden;
    /*white-space: ;*/
    text-overflow: ellipsis;
  }
  #upName{
    font: 12px "新宋体";
    color: gray;
    position: absolute;
    bottom: 30%;
  }
  #num{
    font: 12px "新宋体";
    color: gray;
    position: absolute;
    bottom: 10%;
  }
</style>